<template>
  <div class="da">
    <!-- <div class="box">
      <div class="header">头部</div>
      <div class="meddle">内容</div>
    </div> -->
    <div class="footer">
      <router-view></router-view>
      <van-tabbar route>
  <van-tabbar-item replace to="/index" icon="home-o" >首页</van-tabbar-item>
  <van-tabbar-item replace to="/kind" icon="list-switching">分类</van-tabbar-item>
  <van-tabbar-item replace to="/login" icon="shopping-cart-o">购物车</van-tabbar-item>
  <van-tabbar-item replace to="/user" icon="contact-o">我的</van-tabbar-item>
</van-tabbar>
    </div>
  </div>
</template>

<style lang="scss">
    *{
      padding: 0;
      margin: 0;
      list-style: none;
    }
    html,
    body,
    #app,
    .da{
      width: 100%;
      height: 100%;
    }
    .da{
      flex-direction: column;
      display: flex;
      overflow: auto;
      flex: 1;
    }
    .box{
      flex-direction: column;
      overflow: auto;
      flex: 1;
    }
    .header{
      height: 50px;
      overflow: auto;
    }
    .meddle{
      overflow: auto;
      flex: 1;
    }
    .footer{
      height: 50px;
      flex: 1;
      overflow: auto;
    }
</style>
